<template>
  <router-view></router-view>
</template>

<script setup lang="ts">
import { RouterLink, RouterView, useRouter } from 'vue-router'
import { useWebSocketStore } from './stores/websocket'
import axios from 'axios'
import { onBeforeUnmount } from 'vue'
import Cookies from 'js-cookie'
const router = useRouter()

// let gt = Cookies.get('checkLian')
// // 获取webSocketStore
// const wsStrore = useWebSocketStore()
// if(gt==null){
//   wsStrore.connect('/ws/sendMessage')

//   Cookies.set('checkLian','1')
//   gt = Cookies.get('checkLian')
// }

</script>

<style scoped lang="scss">

</style>
